Speeding Up SOR and Kaczmarz for Constraint-based GUIs with a Warm-Start Strategy
نویسندگان
چکیده
Many computer programs have graphical user interfaces (GUIs). UI layout supports efficient use of screen real estate. Most GUIs do not have a fixed layout, but are resizable and able to adapt sizes of window, screen and widgets. Constraints are a powerful tool for specifying adaptable GUI layouts: they are used to specify a layout in a general form, and a constraint solver is used to find a satisfying concrete layout, e.g. for a specific GUI size. The constraint solver has to calculate a new layout every time a GUI is resized or changed, so it needs to be efficient to ensure a good user experience. One approach for constraint solvers is based on the Gauss-Seidel algorithm and successive over-relaxation (SOR). Another frequently used approach is based on Kaczmarz. Our observation is that a solution after resizing or changing is similar in structure to a previous solution. Thus, we hypothesize that we can increase the computational performance of Kaczmarz and SOR-based constraint solvers if we reuse the solution of a previous layout to warm-start the solving of a new layout. In this article we report on experiments to test this hypothesis experimentally for three common use cases: big-step resizing, small-step resizing and constraint change. In our experiments, we measured the solving time for randomly generated GUI layout specifications of various sizes. For all three cases we found that the performance is improved if an existing solution is used as a starting solution for a new layout.
منابع مشابه
Random reordering in SOR-type methods
When iteratively solving linear systems By = b with Hermitian positive semi-definite B, and in particular when solving least-squares problems for Ax = b by reformulating them as AA∗y = b, it is often observed that SOR type methods (Gauß-Seidel, Kaczmarz) perform suboptimally for the given equation ordering, and that random reordering improves the situation on average. This paper is an attempt t...
متن کاملComparison of The Effectiveness of Traditional and Post-Activation Potentiation Warm-Up Methods on EMG Variables of Selected Lower Limb Muscles During Squat Jump
Purpose: A proper warm-up method can be used as a strategy to improve performance of athletes in various sport fields. The aim of present study was to compare the effect of two traditional and post-activation potentiation warm-up methods on electromyographic variables of lower extremity muscles during squat jump. Methods: Fourteen trained male athletes were randomly performed three different p...
متن کاملConstraint Solvers for User Interface Layout
Constraints have played an important role in the construction of GUIs, where they are mainly used to define the layout of the widgets. Resizing behavior is very important in GUIs because areas have domain specific parameters such as form the resizing of windows. If linear objective function is used and window is resized then error is not distributed equally. To distribute the error equally, a q...
متن کاملGenerating Graphical User Interfaces for Software Product Lines: A Constraint-based Approach
Due to a high competitive pressure on the global software market, in many areas the software industry is moving from hand crafting to semi-automatic or automatic software construction based on Software Product Lines (SPL). Techniques to automate the construction of software products from SPLs are widely available. These can handle variability in source code artifacts but they are inappropriate ...
متن کاملEffect of different intensity warm up on plasma antioxidant enzymes and damage indices of lipid, protein and DNA after intensive activity in non-athlete males
The aim of this research was to study the effect of warm up with two different type intensity on plasma antioxidant enzymes and damage indices of lipid, protein and DNA after intensive activity in non-athlete males. 12 non athlete students of kharazmi University participated in this study. Firist, subjects VO2peak were measured by Gas analyzer (Meta Max 3B) on the ergometer cycle with increment...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- JMPT
دوره 4 شماره
صفحات -
تاریخ انتشار 2013